<div class="portlet box green">
	<div class="portlet-title">
		<div class="caption">
			<i class="fa fa-cogs"></i>全部货品列表
		</div>
		<div class="tools">
			<a href="javascript:;" class="collapse" data-original-title="" title=""> </a>
		</div>
		
	</div>
	<div class="portlet-body form">
		<div class="table-container table-scrollable">
			<form role="form" action="/productScore/addFromProSave" class="form-horizontal" method="post">
			<table class="table table-bordered table-hover icheck-table" id="productTable">
				<thead>
					<tr>
						<th style="width: 20px">
							<input type="checkbox" class="icheck group-icheck"/>
						</th>
						<th>赠品名称</th>
						<th>类别</th>
						<th>基本单位价格</th>
						<th>基本单位</th>
						<th>状态</th>
						<th class="col-md-1">操作</th>
					</tr>
				</thead>
				<tbody>
					#foreach ($!item in $!pageProduct.result)
					#set($prodImage = $!prodImageMap.get($!item).imageUrl)
					<tr class="odd gradeX">
						<td>
							<input type="checkbox" name="pId" class="icheck" value="$!item.id" />
						</td>
						<td>
							<div style="display: inline-block;margin-left: 10px">
								<p style="margin: 0"><a href="/productScore/preview?id=$!item.id" title="/productScore/preview?id=$!item.id" target="_blank">$item.name</a></p>
								<p style="margin: 0">$item.code</p>
							</div>
						</td>
						<td>$!item.category.name</td>
						<td>$!item.salesPrice</td>
						<td>$!item.unit.name</td>
						<td>
							#if($!item.flag=='true')
								销售中
							#else
								下架
							#end
						</td>
						<td>
						</td>
					</tr>
					#end
				</tbody>
			</table>
			</form>
		</div>
		#set($page=$pageProduct)
		#set($pageUrl="/productScore/addFromPro.do?$!queryString&pageNo=")
		#parse("_pageModel.htm")
		
		<div class="form-actions center" style="float:right;">
			<a href="javascript:;" thref="·" class="btn green ajax-post"><i class="fa fa-check"></i> 提交</a>
			<a href="javascript:;" data-dismiss="modal" class="btn btn-outline grey-salsa">返回</a>
		</div>
		<br/>
	</div>
	
</div>
<script type="text/javascript" src="/assets/scripts/views-permission.js"></script>
<script type="text/javascript" src="/assets/scripts/views-icheck.js"></script>